(function($, doc) {
	$.init();
	var userinfo = app.getState() || {};
	var uid=userinfo.user_id; 
	var defaultLan = localStorage.getItem('defaultLan') || 'en';
	$.plusReady(function() {
		
		mui.ajax({
			url: apiurl + "User/zhinan/",
			data: {
				'user_id': uid,
				'_token':userinfo.token,
				'lang':defaultLan,
			},
			async: true,
			dataType: 'json',
			crossDomain: true, //强制使用5+跨域
			type: 'get',
			timeout: 10000,
			success: function(res) {
				console.log(JSON.stringify(res));
				// 请求成功
				if(res.status ==-3){
					mui.toast(res.msg);
					app.out();
					return false;
				} else {
					doc.getElementById("zhinancontent").innerHTML = res.msg;
				}
			},
			error: function(xhr, type, errorThrown) {
				mui.toast('操作失败！');
			}
		});
	})
}(mui, document));